FL27 DRIBBLING 2.11
A dribbling, ball-control and COM attacking AI mod for SP Football Life 2027 (Sider modules)
Beta: the dribbling engine also tries to run on Steam PES 2021 (see STEAM PES 2021 BETA below).
==========================================================================

WHAT IT DOES
  - Closer, more controlled touches when you dribble at pace.
  - Sprint dribbling that keeps the ball near the feet instead of knocking it far ahead.
  - Explosive standing starts: players push off and go, no shuffle or kick-out feint.
  - Smoother pace changes and turns while carrying the ball.
  - Reworked dribbling animations (touches, turns, runs with the ball, arm swing) that are
    timed to the new engine.
  New in 2.0, for your players:
  - Every player dribbles like himself: dribble pace comes from his acceleration, stamina,
    balance and tight possession. A long solo run tires him a little (he recovers when he
    eases off, passes or stops), and a sharp cut costs a little pace.
  - Skill moves play faster, so they keep up with the faster dribble (turning skills such as
    roulettes and double touches stay at normal speed so the ball stays with him).
  - Feint, then knock: after a body feint or a shot feint, the next touch knocks the ball where
    you point the movement stick (within 45 degrees of where he faces; no knock when you turn
    back). Roulettes, double touches, drag-backs and other turning skills play with no knock.
  - Cleaner close control: close touches are no longer swapped for long ones.
  New in 2.0, for the COM ball carrier (module FL27AITakeOns.lua):
  - Takes players on with the game's own skill moves when an open lane is there.
  - Passes when two defenders close in, looking forward first (through balls included).
  - Shoots in the box instead of squaring it.
  - Acts only when the ball is really at his feet (not on crosses or loose balls).
  - No more fake shot -> freeze -> lose it: outside the box the game's shot feint becomes a
    normal dribble.
  Works in offline matches and training.

HOW IT WORKS
  Three parts, all loaded by Sider:
  - Engine: a Sider Lua module. When Sider starts, it patches the dribbling code in the
    game's memory.
  - COM AI: a second Sider Lua module (FL27AITakeOns.lua) that adjusts the COM ball
    carrier's decisions in memory. It loads right after the engine.
  - Animations: a livecpk folder that Sider loads instead of the matching stock animation
    files.
  No game file, exe or cpk is changed on disk. Remove the three lines from sider.ini and the
  game is back to normal.

REQUIREMENTS
  - SP Football Life 2027 (FL_2027.exe) with its Sider. Sider already ships with Football Life.
    Tested on Football Life 27.1.0 and on the 27.1.1 update (update 1.1).
    Or, as a beta, Steam PES 2021 (PES2021.exe) with Sider 7 for PES 2021.
  - In sider.ini:  lua.enabled = 1,  luajit.ext.enabled = 1  and  livecpk.enabled = 1
    (Football Life's sider.ini already has all three.)

INSTALL  (pick A or B)
  Close the game and Sider first. Your Sider folder is the one that contains sider.exe
  and sider.ini.

  A) ONE-CLICK
  1. Extract everything in this zip into your Sider folder. Allow the merge if Windows
     asks. Only new files are added; nothing already there is replaced:
        INSTALL-FL27Dribbling.bat, UNINSTALL-FL27Dribbling.bat, FL27Dribbling-README.txt
        modules\FL27Dribbling.lua, modules\FL27AITakeOns.lua
        content\fl27-dribbling\       (6 .bin files)
        livecpk\FL27Dribbling\        (animation files)
  2. Double-click INSTALL-FL27Dribbling.bat.
     It saves a copy of your sider.ini (sider.ini.before-FL27Dribbling), then adds the three
     lines from B) step 3 in the right places. Upgrading from 1.x: extract over the old files
     (allow Windows to replace them) and run it; it only adds the missing COM AI line. It changes no other line, so your other
     mods stay as they are. Running it twice does nothing the second time. If another
     animation pack replaces some of the same files, it tells you which one.
     If Windows shows "Windows protected your PC", click More info > Run anyway. The .bat
     is plain text; open it in Notepad to see exactly what it does.
  3. Start Sider and the game as usual.

  B) MANUAL
  1. Copy the "modules", "content" and "livecpk" folders from this zip into your Sider
     folder. Allow the merge if Windows asks (and allow replacing the old FL27 files when
     upgrading from 1.x).
  2. Make a copy of sider.ini as a backup.
  3. Open sider.ini in Notepad and add these three lines:
     a) ABOVE all the other cpk.root lines, so these animations win over any other
        animation pack:
        cpk.root = ".\livecpk\FL27Dribbling"
     b) Under the other lua.module lines, in this order:
        lua.module = "FL27Dribbling.lua"
        lua.module = "FL27AITakeOns.lua"
  4. Save, then start Sider and the game as usual.

CHECK THAT IT IS ON
  - In sider.log (in the Sider folder) look for:
        FL27Dribbling: ON (style 10)
  - Near the top of sider.log:
        Using cpk.root: ...\livecpk\FL27Dribbling\
  - A few lines later:
        FL27AITakeOns: installed ...
  - The Sider overlay also shows "FL27 Dribbling 1.4: ON (style 10)" (1.4 is the knock
    version inside 2.11) and a page for FL27AITakeOns. The number keys 5-9 and 0 do nothing:
    the COM AI's test switches are off (keys = 1 in FL27AITakeOns.lua turns them on).
  - The line before it says where the engine found the game code, for example:
        FL27Dribbling: exe stamp 5f5ed4bf, same places as FL27 v1.0: A=+9f21f7 ...

UNINSTALL
  - One-click: double-click UNINSTALL-FL27Dribbling.bat in your Sider folder. It removes
    only the three FL27 lines from sider.ini (and keeps a copy as
    sider.ini.with-FL27Dribbling).
  - Manual: put ; in front of all three lines in sider.ini, or delete them:
        ;cpk.root = ".\livecpk\FL27Dribbling"
        ;lua.module = "FL27Dribbling.lua"
        ;lua.module = "FL27AITakeOns.lua"
  To remove the files too, delete modules\FL27Dribbling.lua, modules\FL27AITakeOns.lua,
  content\fl27-dribbling and livecpk\FL27Dribbling.
  To keep the dribbling but turn off only the COM AI, put ; in front of the
  FL27AITakeOns.lua line.

IF IT SAYS "off (...)" IN sider.log
  The module checks the game before it changes anything. If something does not match, it
  stays off and the game runs normally:
  - "game code not found (...)": the engine looks for the exact dribbling code it changes.
    Each piece must be found exactly once, or nothing is changed. This means one of:
      - another dribbling or movement mod is already hooking the same code. The FL27 move
        limiter uses the same spot (piece C), so use one or the other;
      - this game exe has different code (another game version or update). Watch for an
        updated release, and send the sider.log line (see STEAM PES 2021 BETA).
  - "set luajit.ext.enabled = 1 in sider.ini": turn that option on.

AFTER A FOOTBALL LIFE UPDATE
  Both modules find the game code by searching for it each time the game starts, not by
  fixed addresses, so updates that do not rewrite the dribbling or AI code keep working with
  no new download (27.1.1 found the same places). Check sider.log after an update:
  "FL27Dribbling: ON" and "FL27AITakeOns: installed" mean all is well. If an update does
  change that code, the module says "off (...)" and the game runs normally without it.
  If the update replaced sider.ini, run INSTALL-FL27Dribbling.bat again: it only adds the
  missing lines.

KNOWN BEHAVIOUR
  - Tested over a full 90-minute match plus training: no crashes, no hangs at half time or
    full time.
  - Players keep the ball closer, so in tight shielding duels bodies can touch or overlap
    slightly. Stock PES does this too; in testing it happened less often with the mod.
  - Mac (Whisky/Wine): the mod works, but the Sider overlay may not show. Use sider.log.

COMPATIBILITY
  - Works alongside kits, faces, stadiums, scoreboards, camera and other Sider modules.
  - Do not combine it with other mods that change dribbling or player movement code.
  - Other animation packs: the files in livecpk\FL27Dribbling replace body_anime_file0-2,
    4-9 and Mbinfo HitData/PivotInfo/PivothitInfo/anim_infos. A pack that replaces the same
    files will be overridden (or will override this one if its cpk.root is listed first).
  - Does not touch saves, rosters or online features. Offline play only.

STEAM PES 2021 BETA
  The COM AI module is for Football Life 2027 only; on Steam PES 2021 it is untested.
  Since 1.1 the engine no longer uses fixed addresses: it searches the running game for the code it
  changes, like the camera and kit modules that work on both games. If Steam PES 2021 has
  the same dribbling code as Football Life 2027, the engine switches on there too.
  Not tested on Steam yet. If you try it:
  - Install it the same way into your Sider folder for PES 2021. Your sider.ini needs
    lua.enabled = 1, luajit.ext.enabled = 1 and livecpk.enabled = 1.
  - Play a match or two, close the game, open sider.log (in the Sider folder) and send me
    every line that has FL27 in it (copy the text; in Notepad, Ctrl+F "FL27" finds them).
    Since 2.9 these lines say much more:
      - the mod version and a checksum of each data file (so I know the files are complete),
      - your sider.ini setup (livecpk on, cpk.root order, the other Lua modules),
      - whether the game loaded the FL27 animation set or a different one,
      - where the engine found the game code, or which piece it did not find,
      - for each match, what the mod did (boosted frames, swapped clips, knocks, COM skill
        moves ...). All zeros after a match you played mean it was not acting.
        These are written during play (when a replay or cutscene loads) and when the next match's
        teams are picked, so after your last match pick teams for one more before you quit.
    Either result helps:
      "ON (style 10)"        the engine is running. Tell me how it feels.
      "off (game code ...)"  it is not running yet; the line says which piece is missing.
  - If the game crashes or anything looks wrong, run UNINSTALL-FL27Dribbling.bat and tell me.
  - Please do not send game files or exes. The sider.log lines are all I need.

VERSION
  2.0 (2026-11-16, early access): pace from player stats, faster skill moves, feint knock,
    cleaner close control, and the COM attacking AI module (FL27AITakeOns 2.6j: 2.6 plus a check
    that keeps the ball-at-feet rule from guessing on a game exe it does not know),
    and a fix: when a shot feint turns the player and the knock is skipped, he now gets the
    normal dribble touch instead of a short one that left the ball behind him.
    Update (2026-11-17, knock 1.4): only body feints and shot feints knock the ball now. Before,
    a roulette or a standing double touch could knock it 4-7 m away and lose it.
    Update (2026-11-18): if the game or Sider is still running, the installer now says which
    one (for example PES2021.exe) and how to close it.
    Update (2026-11-19, FL27AITakeOns 2.7):
    - The engine now tells your team from the COM team by the game's own AI. Before, a COM
      player on the ball counted as yours: your skill-move speed, feint knock and standing-
      start fix could apply to him, and after a COM possession your own player's first touch
      (an interception, say) could be slowed like a COM player's.
    - Outside-foot touches: near and mid ones no longer play the long-reach clip (the far
      ones get it instead). They were the wrong way round.
    - Right after you receive the ball, the ball-at-feet check now gives its usual short grace.
    - Code and the data it writes every frame are on separate memory pages (Wine on Apple
      Silicon handles mixed pages badly).
    - The installer checks for all six data files.
    - The number-key test switches of the COM AI are off.
    Update (2026-11-19, 2.8): roulettes, double touches and in-out / out-in feints play at
      normal speed again. Sped up, a roulette ended early and the player ran on without the
      ball (reported on PES 2021). Other skill moves stay faster. In tests the ball was kept
      in 47 of 49 skill moves (was 44 of 52) and never left behind (was 2 of 55).
    Update (2026-11-19, 2.9):
    - At speed, the mod swapped two dribble touches for a clip whose touch was too soft, so
      the player ran past the ball and his legs went back for it (seen with Haaland). Those
      two touches play the game's own clip again.
    - Body feints and shot feints that end with the player standing still no longer knock
      the ball: it rolled 4-5 m away while he stopped.
    - Better sider.log for bug reports: version and data-file checks, the sider.ini setup, an
      animation-set check and a summary of what the mod did in each match. Every line has
      FL27 in it.
    Update (2026-11-21, 2.11):
    - Dribble starts: the first touch when a player sets off with the ball no longer pushes it
      too far ahead (it felt like tapping sprint and letting go). Seven standing starts play
      the game's own start clips again instead of long burst clips, and the kick-out start
      plays a plain start. In tests the first touch stayed 0.86 m ahead on average (was 1.04 m)
      and no start ran the ball more than 1.8 m away (was 1 in 20, up to 2.1 m). This applies
      to your players and the COM.
    - Turns: after a 180-degree turn, two dribble clips made the player run a small circle to
      get back to the ball. They play at normal speed now and he goes straight to it.
    - Data files: map34sife_ftA.bin and ktab_ftD.bin replace map34sife.bin and
      ktab_cd5st160b115.bin (you can delete those two). The COM AI module is the same as in 2.9.
  1.1 beta (2026-11-08): finds the game code by search instead of fixed addresses, so it can
    run on other PES 2021 exes with the same code (Steam PES 2021 beta). No change in
    Football Life 2027: same code places, same dribbling.
  1.0 (2026-11-08): first public release.

CREDITS
  SP Football Life 2027 by SmokePatch. Sider by juce. PES 2021 by Konami.
  This mod is a free, unofficial add-on. It ships no exe or cpk; the animation files are
  edited versions of the game's own animations and need your own copy of the game.

SUPPORT
  Official page and updates: https://github.com/icey4826/FL27-Dribbling
  If you enjoy it and want to say thanks: https://www.paypal.me/icey4826  (optional)

TERMS
  Free to use. Please do not re-upload or sell it; share the link to the official page instead.
